package mysql

import "gorm.io/gorm"

type Patient struct {
	gorm.Model
	UserId      int    `gorm:"type:int(10);not null;comment:'用户Id'"`
	PatientName string `gorm:"type:varchar(50);not null;comment:'就诊人名称'"`
}

func PatientList() (result []*Patient, err2 error) {
	DB.Debug().Find(&result)
	return
}
func PatientShow(id int) (result *Patient, err2 error) {
	DB.Debug().Where("id = ?", id).Limit(1).Find(&result)
	return
}
